#include <iostream>

using namespace std;

int main()
{
    char input = 0, prev = 0, ret[100] = { 0 };
    int a = 0;
    while (input != '\n')
    {
        //cin >> input;
        scanf("%c", &input);
        if (a == 0 || prev == ' ')
        {
            if (input >= 'a' && input <= 'z')
                input -= 32;
            ret[a] = input;
            cout << ret[a];
            a++;
        }
        prev = input;
    }

    return 0;
}